﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace InfoSource.Models.objects
{
	public class ContractorSimple
	{

		#region Properties ======================================================================

		public string Name { get; set; }
		public string Code { get; set; }

		#endregion

		#region Constructor =====================================================================

		public ContractorSimple() { }

		#endregion

		#region Methods =========================================================================

		public ContractorSimple ConvertFromContractor(Contractor contractor)
		{
			this.Name = contractor.Name;
			this.Code = contractor.Code;


			return this;
		}

		#endregion
	}
}